﻿﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NRapid MVC framework
//        Filename :{Index}.cs
//        Description :模板提示类
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.NRapid.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApp.App.Views.Default.IndexController
{
    public partial class Index : System.Web.UI.Page
    {
		//数据库模型
        public class __Index_users__:NRapid.Struct
		{
			public System.Int64 id;
			public System.String name;
			public System.String pwd;
			#region 写Json字符串
			public override void WriteJson(System.IO.TextWriter tw)
			{
				tw.Write("{");
						tw.Write("\"id\":");
						tw.Write(id.ToString());
						tw.Write(",");
						tw.Write("\"name\":");
						if(name==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(name);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"pwd\":");
						if(pwd==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(pwd);
							tw.Write("\"");
						}
				tw.Write("}");
			}
			#endregion
		}
		//函数内变量
        public class Index_AutoComplete:Controller
        {
			/*参数变量*/
			/*数据库变量*/
					/// <summary>
					/// 用户
					/// </summary>
						public NRapid.List<__Index_users__> users;
			/*一般变量*/
				/// <summary>
				/// 这是变量b
				/// </summary>
				public int b;
			/*DAL函数声明变量*/
        }
		/// <summary>
		/// 变量提示类,用于自动完成.
		/// </summary>
        public Index_AutoComplete ViewBag = new Index_AutoComplete();
    }
}